import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'nprogress/nprogress.css'
import '@/mock'
import components from '@/main/components'
import lazy from '@/main/lazy'
import validate from '@/main/validate'
import elementUl from '@/main/elementUl'
Vue.use(components)
Vue.use(lazy)
Vue.use(validate)
Vue.use(elementUl)
Vue.config.productionTip = false
new Vue({
  render: h => h(App),
  router,
  store,
  beforeCreate() {
    Vue.prototype.$bus = this
  }
}).$mount('#app')
